package com.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/*贴吧类*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PostBar implements Serializable {
    private int id;  /*贴吧编号  用户不可编辑（通过数据库触发器自动控制增长）*/
    private String name;
    private String barImg;  /*贴吧头像图片名称*/
    @TableField("`describe`") //describe是mysql的关键字，加此注解才能使sql成功执行
    private String describe;
    private Date esTime;
    private byte setRecommend; // 是否为推荐贴吧   1是 0不是
    @TableField(exist = false)
    private int peopleNum;
    @TableField(exist = false)
    private String category;

    @TableField(exist = false)
    private int postNum;  /*帖子数*/
}